package com.samshow.app;

import com.samshow.config.DataBaseConfiguration;
import com.samshow.res.repository.ScreenRepository;
import com.samshow.res.vo.DefaultBxTextProgram;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

/**
 * Created by Administrator on 2017/2/14.
 */
@SpringBootApplication
@EnableDiscoveryClient
@Import(DataBaseConfiguration.class)
@ComponentScan("com.samshow.*")
@EnableConfigurationProperties(DefaultBxTextProgram.class)
public class DisplayApplication {

    @Autowired
    private ScreenRepository screenRepository;

    public static void main(String[] args){
        new SpringApplicationBuilder(DisplayApplication.class).web(true).run(args);
    }
}
